package com.cake.liulanxiangzhu.service;

import com.cake.liulanxiangzhu.pojo.dto.AdminPictureDTO;
import com.cake.liulanxiangzhu.pojo.dto.AdminPictureInsertDTO;
import com.cake.liulanxiangzhu.pojo.entity.AdminPicture;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cake.liulanxiangzhu.pojo.vo.AdminPictureVO;
import com.cake.liulanxiangzhu.web.JsonPage;

import java.util.List;

/**
 * @author DingHao
 * @description 针对表【admin_picture(图片)】的数据库操作Service
 * @createDate 2023-01-22 21:41:30
 */
public interface AdminPictureService extends IService<AdminPicture> {
    /**
     * @Description: 新增图片数据
     * @Param: [adminPictureInsertDTO]
     * @return: void
     * @Author: ManolinCoder
     * @Date: 2023/1/23
     */
    void addNew(AdminPictureInsertDTO adminPictureInsertDTO);

    /**
     * @Description: 删除图片数据
     * @Param: [id]
     * @return: void
     * @Author: ManolinCoder
     * @Date: 2023/1/23
     */
    void deletePicture(Integer id);

    /**
     * @Description: 修改图片数据
     * @Param: [adminPictureDTO]
     * @return: void
     * @Author: ManolinCoder
     * @Date: 2023/1/23
     */
    void updatePicture(AdminPictureDTO adminPictureDTO);

    /**
     * @Description: 分页查询所有图片数据
     * @Param: []
     * @return: JsonPage<AdminPictureVO>
     * @Author: ManolinCoder
     * @Date: 2023/1/23
     */
    JsonPage<AdminPictureVO> queryList(Integer page, Integer pageSize);

    /**
     * @Description: 查询所有图片数据
     * @Param: []
     * @return: List<AdminPictureVO>
     * @Author: ManolinCoder
     * @Date: 2023/1/23
     */
    List<AdminPictureVO> queryAllPicture();

    /**
     *@Description: 根据ID查询数据
     *@Param: [id]
     *@return: AdminPictureVO
     *@Author: ManolinCoder
     *@Date: 2023/1/23
     */
    AdminPictureVO queryById(Integer id);


}
